import { createApp } from 'vue';
import App from './App.vue';
import router from './router/index';
import '@/assets/styles/common.less';
import { createPinia } from 'pinia';
import piniaPersist from 'pinia-plugin-persist';
import '@ant-design-vue/pro-layout/dist/style.css'; // pro-layout css or style.less
import 'ant-design-vue/dist/antd.less';
import Antd from 'ant-design-vue';
import ProLayout, { PageContainer } from '@ant-design-vue/pro-layout';
import icons from '@/icons';
import "@/assets/styles/font/iconfont.css"

const pinia = createPinia();
pinia.use(piniaPersist);

const app = createApp(App);

//去除警告信息
app.config.warnHandler = () => null;
app.use(Antd,{
    size:"small"
});
app.use(icons);
app.use(ProLayout);
app.use(PageContainer);
app.use(router);
app.use(pinia);
app.mount('#app');

